#include <iostream>

using namespace std;

class p1 {
public:
        int a1;
        p1() {cout << __func__ << "()" << endl;};
};

class p2 {
public:
        int a2;
        p2() {cout << __func__ << "()" << endl;};
};

class c : public p1, public p2 {
public:
        int a3;
        c() {cout << __func__ << "()" << endl;};
};

int main()
{
        c tmp;

        tmp.a1 = 4;
        tmp.a2 = 5;
        tmp.a3 = 6;

        cout << tmp.a1 << ' ' << tmp.a2 << ' ' << tmp.a3 << endl;

        return 0;
}
